package aliauth

import (
	"github.com/kataras/iris/v12"
	"github.com/kataras/iris/v12/mvc"
)

// api :

// AliAuth 用户接口
type AliAuth struct {
	// Optionally: context is auto-binded by Iris on each request,
	// remember that on each incoming request iris creates a new UserController each time,
	// so all fields are request-scoped by-default, only dependency injection is able to set
	// custom fields like the Service which is the same for all requests (static binding).
	Ctx iris.Context
}

func (c *AliAuth) BeforeActivation(b mvc.BeforeActivation) {
	b.Handle("GET", "/test", "Test")
	// b.Handle("GET", "/reset_pass", "GetResetPass")
	// b.Handle("POST", "/reset_pass", "PostResetPass")
}

func (c *AliAuth) Test() {
	c.Ctx.JSON(iris.Map{"flag": true, "msg": "1234"})
	return
}
